{*
 * This file is part of the Agora distribution. 
 * Detailed copyright and licensing information can be found
 * in the gpl-3.0.txt file which should be included in the distribution.
 * 
 * @version		$Id: 3.0.14 Olympus 2010-09-28 rammstein4o $
 * @copyright  2007 - 2010 jVitals
 * @license   GPLv3 Open Source
 * @link       http://jvitals.com
 * @since      File available since initial release
 *}
<div class="ag_rightend">
	<h2 class="ag_headerbar"><span class="ag_middle">##Select forum##</span></h2>
</div>
<div class="ag_outerwrap">
	<form method="get" action="{$form_url}">
		<input type="hidden" name="option" value="com_agora" />
		<input type="hidden" name="Itemid" value="{$agora_itemid}" />
		<input type="hidden" name="task" value="poll" />
		<input type="hidden" name="page" value="select" />
		<div class="ag_inform">
			<fieldset>
				<legend class="ag_color">##Select forum##</legend>
				<div class="ag_infldset txtarea">
					<select name="id" class="ag_qjump">
						{foreach from=$allowed_forums item=forum_cat}
						<optgroup label="{$forum_cat.cat_name}">
							{foreach from=$forum_cat.forums item=forum_forum}
								{if !$forum_forum.closed}
									<option value="{$forum_forum.id}">
										|--{section name=forum_level start=0 loop=$forum_forum.level*2}-{/section}&nbsp;{$forum_forum.forum_name}
									</option>
								{/if}
							{/foreach}
						</optgroup>
						{/foreach}
					</select>
				</div>
			</fieldset>
		</div>
		<div class="ag_postbuttons">
			<span>
				<input class="ag_button ag_btn_submit" type="submit" name="submit" value="##Submit##" title="##Submit##" accesskey="g" />
				&nbsp;##or##&nbsp;
				<a href="javascript:void(0);" class="ag_btn_goback" title="##Go back##" onclick="javascript:history.go(-1)" tabindex="6">##Go back##</a>
			</span>
		</div>
	</form>
</div>